package com.settlement.system.reply;


import com.settlement.system.common.enums.ReturnStatusEnum;

/**
 * 基础返回参数类
 * @author li.zy
 */
public class BaseReply {

    public BaseReply(int statusCode, String remark, Object data, int rowsCount){
       this.statusCode = statusCode;
       this.remark = remark;
       this.data = data;
       this.rowsCount = rowsCount;
    }

    public BaseReply(){

    }

    /**
     * 状态码
     **/
    private int statusCode = ReturnStatusEnum.REQUEST_SUCCESS.getValue();

    /**
     * 前端展现给用户的提示信息
     **/
    private String remark;

    /**
     * 返回数据
     **/
    private Object data;

    /**
     * 返回数据总数
     **/
    private int rowsCount;

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getRowsCount() {
        return rowsCount;
    }

    public void setRowsCount(int rowsCount) {
        this.rowsCount = rowsCount;
    }
}
